package com.poetry.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;

@TableName("chat_message")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChatMessage {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String conversationId;
    private MessageType type;
    private String content;
    private LocalDateTime createTime;

    public enum MessageType {
        USER, ASSISTANT
    }
}
